package com.suse.jd_system_server.service;

import com.suse.jd_system_server.entity.Authority;
import com.suse.jd_system_server.entity.User;
import com.suse.jd_system_server.utils.Result;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface LoginService {

    User selectUserByName(String username);

    List<String> selectAuthority(Long userid);

    Result Login(String username, String password);

    Result Logout(Long userId);

    Result Register(Map param);

    List<Authority> selectRoles(Long role_id);

    List<Authority> selectallAuthority();

    void deleteau(Map param);

    List<String> selectProvince();

    List<String> selectCity(String cityName);
}
